﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace UniverDataServiceLib
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IUniverDataService
    {
        /// <summary>
        /// Gets data for any university object in DB
        /// </summary>
        /// <param name="uniqueNo"></param>
        /// <returns></returns>
        [OperationContract]
        UObjectFullData GetObjectData(int uniqueNo);

        /// <summary>
        /// Gets all child nodes for some parent node
        /// </summary>
        /// <param name="parentId">Id of parent node</param>
        /// <returns></returns>
        [OperationContract]
        UObject[] GetChildUObjects(int parentId);

        /// <summary>
        /// Test method
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        UObjectPropertie Get1();

    }   
}
